package com.zhentao.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhentao.pojo.TbUserExtra;
import com.zhentao.service.TbUserExtraService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("extra")
public class ExtraController {
    @Autowired
    private TbUserExtraService extraService;
    @RequestMapping("findAll")
    public List<TbUserExtra> findAll(){
        Page<TbUserExtra> page = new Page<>(1,5);
        return extraService.list(page);
    }
}
